package com.zcc.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

//RestController将Controller的String类型返回值不当做视图解析器，也就是不返回网址
@RestController
public class HelloController {

    //网址
    @RequestMapping("/hello")
    public String hello() {
        return "Hello World";
    }
}
